package com.sugar.subscribe.course.module.business.service.coachcertificate;

import java.util.*;
import javax.validation.*;
import com.sugar.subscribe.course.module.business.controller.admin.coachcertificate.vo.*;
import com.sugar.subscribe.course.module.business.controller.app.coachcertificate.vo.AppCoachCertificateRespVO;
import com.sugar.subscribe.course.module.business.controller.app.coachcertificate.vo.AppCoachCertificateSaveReqVO;
import com.sugar.subscribe.course.module.business.dal.dataobject.coachcertificate.CoachCertificateDO;
import com.sugar.subscribe.course.framework.common.pojo.PageResult;
import com.sugar.subscribe.course.framework.common.pojo.PageParam;

/**
 * 教练证书 Service 接口
 *
 * @author Ysugar
 */
public interface CoachCertificateService {

    /**
     * 创建教练证书
     *
     * @param createReqVO 创建信息
     * @return 编号
     */
    Long createCoachCertificate(@Valid CoachCertificateSaveReqVO createReqVO);

    /**
     * 更新教练证书
     *
     * @param updateReqVO 更新信息
     */
    void updateCoachCertificate(@Valid CoachCertificateSaveReqVO updateReqVO);

    /**
     * 删除教练证书
     *
     * @param id 编号
     */
    void deleteCoachCertificate(Long id);

    /**
    * 批量删除教练证书
    *
    * @param ids 编号
    */
    void deleteCoachCertificateListByIds(List<Long> ids);

    /**
     * 获得教练证书
     *
     * @param id 编号
     * @return 教练证书
     */
    CoachCertificateDO getCoachCertificate(Long id);

    /**
     * 获得教练证书分页
     *
     * @param pageReqVO 分页查询
     * @return 教练证书分页
     */
    PageResult<CoachCertificateRespVO> getCoachCertificatePage(CoachCertificatePageReqVO pageReqVO);

    Long appCreateCoachCertificate(AppCoachCertificateSaveReqVO createReqVO, Long coachId);

    PageResult<AppCoachCertificateRespVO> appGetCoachCertificatePage(PageParam pageParam, Long coachId);
}